package com.gmail.liulijuan.Busyness;

import java.util.ArrayList;

import com.gmail.liulijuan.DB.Goods;
import com.gmail.liulijuan.DB.EmployeeDao;
import com.gmail.liulijuan.DB.GoodsDao;

public class GoodsList {
	public String[][] initGoodsList(){	ArrayList al;
	GoodsDao gd=new GoodsDao();
	al=gd.getAllGoods();
	String[][] goods=new String[al.size()][3];
	
	for (int i = 0; i < al.size(); i++) {
		goods[i][0]=String.valueOf(((Goods)(al.get(i))).getID());
		goods[i][1]=((Goods)(al.get(i))).getGoodsName();
		goods[i][2]=String.valueOf(((Goods)(al.get(i))).getPrice());
		
	}
	return goods;
	}

public String[] initColumTitle(){
	String[] tt={"ID","GoodName","Price"};
	return tt;
		
	
}

public ArrayList getAllUsers(){
	EmployeeDao em=new EmployeeDao();
	return em.getAllUsers();
	
}

public ArrayList getAllGoods() {
	// TODO Auto-generated method stub
	return null;
}


}
